function debounce(fn,timeout) {
  let _time = null;
  return function () {
    let _arg = arguments;
    clearTimeout(_time);
    _time = setTimeout(() => {
      fn.apply(this, _arg);
    }, timeout);
  };
}
export default debounce;
